package com.cyandpos.pad.posdata;

import java.io.Serializable;

/**
 * Created by zx on 20200306
 */

public class CardCouponItem implements Serializable {
    public int cardId;
    public String cardCode;
    private int couponType;
    private String couponTypeName;
    private String validDate;
    private int limitMoney;// 本券本交易可用金额
    private int balance;
    private int usedMoney;

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public String getCardCode() {
        return cardCode;
    }

    public void setCardCode(String cardCode) {
        this.cardCode = cardCode;
    }

    public int getCouponType() {
        return couponType;
    }

    public void setCouponType(int couponType) {
        this.couponType = couponType;
    }

    public String getCouponTypeName() {
        return couponTypeName;
    }

    public void setCouponTypeName(String couponTypeName) {
        this.couponTypeName = couponTypeName;
    }

    public String getValidDate() {
        return validDate;
    }

    public void setValidDate(String validDate) {
        this.validDate = validDate;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public int getUsedMoney() {
        return usedMoney;
    }

    public void setUsedMoney(int usedMoney) {
        this.usedMoney = usedMoney;
    }

    public int getLimitMoney() {
        return limitMoney;
    }

    public void setLimitMoney(int limitMoney) {
        this.limitMoney = limitMoney;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"cardId\":")
                .append(cardId);
        sb.append(",\"cardCode\":\"")
                .append(cardCode).append('\"');
        sb.append(",\"couponType\":")
                .append(couponType);
        sb.append(",\"couponTypeName\":\"")
                .append(couponTypeName).append('\"');
        sb.append(",\"validDate\":\"")
                .append(validDate).append('\"');
        sb.append(",\"limitMoney\":")
                .append(limitMoney);
        sb.append(",\"balance\":")
                .append(balance);
        sb.append(",\"usedMoney\":")
                .append(usedMoney);
        sb.append('}');
        return sb.toString();
    }
}
